<?php
class {@modelname}Model extends Model {

 protected 	$_validate=array(
 <loop name="rules" id="vo" token="rule">
 array("{@vo['field']}","{@vo[rule]}","{@vo[condition]}"), </loop>

 );


}
?>